package com.dtzhejiang.social.supervision.risk.engine.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dtzhejiang.social.supervision.risk.engine.common.domain.po.SpiderHospitalPracticeLicenseEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpiderHospitalPracticeLicenseMapper extends BaseMapper<SpiderHospitalPracticeLicenseEntity> {
    int deleteByPrimaryKey(Integer id);

    int insert(SpiderHospitalPracticeLicenseEntity record);

    int insertSelective(SpiderHospitalPracticeLicenseEntity record);

    SpiderHospitalPracticeLicenseEntity selectByPrimaryKey(Integer id);

    SpiderHospitalPracticeLicenseEntity selectByShopId(String shopId);

    /**
     * 获取所有的店铺id
     * @return
     */
    List<String> selectAllShopIds();

    int updateByPrimaryKeySelective(SpiderHospitalPracticeLicenseEntity record);

    int updateByPrimaryKeyWithBLOBs(SpiderHospitalPracticeLicenseEntity record);

    int updateByPrimaryKey(SpiderHospitalPracticeLicenseEntity record);

    List<SpiderHospitalPracticeLicenseEntity> selectAllPracticeLicense();
}